﻿//     Copyright (c) Microsoft Corporation.  All rights reserved.

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Gateway.Console.Models
{
    public class RestrictionsModel
    {
        [Key]
        public int Id { get; set; }

        [Required]
        [Column("RoleId")]
        public int RoleId { get; set; }
        [ForeignKey("RoleId")]
        public virtual RoleModel Role { get; set; }

        [Display(Name = "Restricted Path")]
        [Required]
        public string RestrictBelow { get; set; }
    }
}